package com.sc.nft.admin.request;

import com.sc.nft.enums.EcologyPoolLinkTypeEnum;
import com.sc.nft.enums.EcologyPoolOperationTypeEnum;
import com.sc.nft.enums.EcologyPoolTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author 刘国航
 * @since 2024/7/17
 */
@Data
public class EcologyPoolAllocatePointsRequest implements Serializable {

    @ApiModelProperty("操作类型")
    @NotNull(message = "操作类型不能为空")
    private EcologyPoolOperationTypeEnum operationType;

    @ApiModelProperty("生态池类型")
    @NotNull(message = "生态池类型不能为空")
    private EcologyPoolTypeEnum poolType;

    @ApiModelProperty("用户id")
    @NotNull(message = "用户id不能为空")
    private Long userId;

    @ApiModelProperty("数量")
    @NotNull(message = "数量不能为空")
    @Min(value = 1, message = "数量不能小于1")
    private Long linkCount;

    @ApiModelProperty("物质类型")
    @NotNull(message = "物质类型不能为空")
    private EcologyPoolLinkTypeEnum linkType;

    @ApiModelProperty("备注")
    private String remark;

}
